<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        @keyframes move {
            0% {
                transform: translate(0, 0);
            }
            100% {
                transform: translate(1000px, 0);
            }
        }
        
        div {
            width: 200px;
            height: 200px;
            background-color: pink;
            /* 动画名称 */
            /* animation-name: move; */
            /* 持续时间 */
            /* animation-duration: 4s; */
            /* 运动曲线 */
            /* animation-timing-function: ease; */
            /* 规定动画何时开始 */
            /* animation-delay: 1s; */
            /* 规定动画的播放次数 */
            /* iteration重复 count次数 infinite无限 */
            /* animation-iteration-count: infinite; */
            /* 是否反方向播放 默认的是normai*/
            /* animation-direction: alternate; */
            /* 规定动画结束后的状态 */
            /* animation-fill-mode: forwards; */
            /* animation: name duration timing-function delay iteration-count direction fill-mode; */
            animation: move 10s ease 1s 2 alternate forwards;
        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>